package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import java.math.BigDecimal;
import javax.validation.constraints.NotNull;

import static org.jsola.core.example.BaseExample.E_ID;
import static org.jsola.core.example.BaseExample.M_ID_NOT_NULL;
import static org.jsola.core.example.BaseExample.N_ID;
import static org.jsola.hr.example.CompanyBalanceExample.E_AMOUNT;
import static org.jsola.hr.example.CompanyBalanceExample.E_COMPANYID;
import static org.jsola.hr.example.CompanyBalanceExample.M_AMOUNT_NOT_NULL;
import static org.jsola.hr.example.CompanyBalanceExample.M_COMPANYID_MAX;
import static org.jsola.hr.example.CompanyBalanceExample.M_COMPANYID_NOT_NULL;
import static org.jsola.hr.example.CompanyBalanceExample.N_AMOUNT;
import static org.jsola.hr.example.CompanyBalanceExample.N_COMPANYID;

/**
 * 用工单位账面余额表
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "修改【用工单位账面余额表】的参数")
@Data
public class CompanyBalanceUpdateDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ID, example = E_ID, required = true)
    @NotNull(message = M_ID_NOT_NULL)
    private Long id;

    @ApiModelProperty(notes = N_COMPANYID, example = E_COMPANYID, required = true)
    @NotNull(message = M_COMPANYID_NOT_NULL)
    @Length(max = 32, message = M_COMPANYID_MAX)
    private String companyId;

    @ApiModelProperty(notes = N_AMOUNT, example = E_AMOUNT, required = true)
    @NotNull(message = M_AMOUNT_NOT_NULL)
    private BigDecimal amount;


}

